home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13550 < prev    next >
Encoding:
Text File  |  1996-08-05  |  915 b   |  24 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.sprintlink.net!news1!news
  3. From: Charles Oliva <coliva@iquest.net>
  4. Subject: Setting environment variables from Borland C++
  5. X-Nntp-Posting-Host: ind-009-237-109.iquest.net
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <31575478.C45@iquest.net>
  8. Sender: news@iquest.net (News Admin)
  9. Content-Transfer-Encoding: 7bit
  10. Organization: IQuest Internet, Inc.
  11. Mime-Version: 1.0
  12. Date: Tue, 26 Mar 1996 02:20:40 GMT
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Hello,
  16.    I'm looking to put together a small DOS utility (I'm using Borland C++ 
  17. V4.52) that sets an environment variable from file input.  I've looked 
  18. into the getenv() and setenv() functions, but the documentation on 
  19. setenv() implies that the environment variable value will disappear as 
  20. soon as the program is done.
  21.  
  22. So, how can you set an environment variable that will persist after the 
  23. program is done?  Thanks in advance.
  24.